@echo off
setLocal EnableDelayedExpansion

pushd ..\src\objects

set PROTOC_PATH=..\dep\protoc.exe
set PROTOC_OBJ_PATH=..\src\objects\
set PROTOC_OUTPUT_PATH=..\src\engine\space\objects\


FOR /r %PROTOC_OBJ_PATH% %%O in (*.proto) DO ( 
	set F=%%O
	%PROTOC_PATH% -I=%PROTOC_OBJ_PATH% --cpp_out=%PROTOC_OUTPUT_PATH% %PROTOC_OBJ_PATH%!F:%CD%\=!
)

popd